package com.wxboot.game.eliminate.base;

import java.io.Serializable;

/**
 * 果冻宫格
 */
public class JellyCell implements Serializable {

    /**
     * 当前宫格果冻类型
     */
    private JellyType jellyType;

    public JellyType getJellyType() {
        return jellyType;
    }

    public boolean isNormal() {
        return jellyType.isNormal();
    }

    public boolean isVertical() {
        return jellyType.isVertical();
    }

    public boolean isHorizoncal() {
        return jellyType.isHorizoncal();
    }

    public boolean isSquare() {
        return jellyType.isSquare();
    }

    public JellyCell(JellyType jellyType) {
        this.jellyType = jellyType;
    }

    @Override
    public String toString() {
        return String.valueOf(jellyType.type);
    }
}
